package com.ys.entity.business;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TS_DepotInfo", catalog="Id")
public class TsDepotInfo extends BaseEntity<TsDepotInfo> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="DepotId", nameJava="depotId", typeDataBase="varchar")
	private String depotId;
	@YsField(nameDataBase="DepotName", nameJava="depotName", typeDataBase="varchar")
	private String depotName;
	@YsField(nameDataBase="Cid", nameJava="cid", typeDataBase="varchar")
	private String cid;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="CodeLogsticsServer", nameJava="codeLogsticsServer", typeDataBase="varchar")
	private String codeLogsticsServer;
	@YsField(nameDataBase="FreeChannel", nameJava="freeChannel", typeDataBase="varchar")
	private String freeChannel;
	@YsField(nameDataBase="WarehousingCharge", nameJava="warehousingCharge", typeDataBase="decimal")
	private BigDecimal warehousingCharge;
	@YsField(nameDataBase="NameLogsticsServer", nameJava="nameLogsticsServer", typeDataBase="varchar")
	private String nameLogsticsServer;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TsDepotInfo setId(Long id) {
		this.id = id;
		return this;
	}
	public String getDepotId() {
		return depotId;
	}
	public TsDepotInfo setDepotId(String depotId) {
		this.depotId = depotId;
		return this;
	}
	public String getDepotName() {
		return depotName;
	}
	public TsDepotInfo setDepotName(String depotName) {
		this.depotName = depotName;
		return this;
	}
	public String getCid() {
		return cid;
	}
	public TsDepotInfo setCid(String cid) {
		this.cid = cid;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public TsDepotInfo setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public String getCodeLogsticsServer() {
		return codeLogsticsServer;
	}
	public TsDepotInfo setCodeLogsticsServer(String codeLogsticsServer) {
		this.codeLogsticsServer = codeLogsticsServer;
		return this;
	}
	public String getFreeChannel() {
		return freeChannel;
	}
	public TsDepotInfo setFreeChannel(String freeChannel) {
		this.freeChannel = freeChannel;
		return this;
	}
	public BigDecimal getWarehousingCharge() {
		return warehousingCharge;
	}
	public TsDepotInfo setWarehousingCharge(BigDecimal warehousingCharge) {
		this.warehousingCharge = warehousingCharge;
		return this;
	}
	public String getNameLogsticsServer() {
		return nameLogsticsServer;
	}
	public TsDepotInfo setNameLogsticsServer(String nameLogsticsServer) {
		this.nameLogsticsServer = nameLogsticsServer;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TsDepotInfo setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TsDepotInfo setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TsDepotInfo setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TsDepotInfo tsDepotInfo(
		String depotId,
		String depotName,
		String cid,
		String remark,
		String codeLogsticsServer,
		String freeChannel,
		BigDecimal warehousingCharge,
		String nameLogsticsServer,
		Integer status
			) {
		TsDepotInfo entity = new TsDepotInfo();
		entity.setDepotId(depotId);
		entity.setDepotName(depotName);
		entity.setCid(cid);
		entity.setRemark(remark);
		entity.setCodeLogsticsServer(codeLogsticsServer);
		entity.setFreeChannel(freeChannel);
		entity.setWarehousingCharge(warehousingCharge);
		entity.setNameLogsticsServer(nameLogsticsServer);
		entity.setStatus(status);
		return entity;
	}
}